package com.ruoyi.jpbi.service.impl;

import com.ruoyi.jpbi.domain.jianshe.Planreceipt;
import com.ruoyi.jpbi.mapper.PlanreceiptMapper;
import com.ruoyi.jpbi.service.PlanreceiptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlanreceiptServiceImpl implements PlanreceiptService{
    @Autowired
    PlanreceiptMapper planreceiptMapper;


    @Override
    public List<Planreceipt> findAllByUser(Planreceipt planreceipt) {
        return planreceiptMapper.findAllByUser(planreceipt);
    }

    @Override
    public int insertPlanreceipt(Planreceipt planreceipt) {
        return planreceiptMapper.insertPlanreceipt(planreceipt);
    }

    @Override
    public Planreceipt findAllById(Long id) {
        return planreceiptMapper.findAllById(id);
    }

    @Override
    public int updatePlanreceipt(Planreceipt planreceipt) {
        return planreceiptMapper.updatePlanreceipt(planreceipt);
    }

    @Override
    public int deletePlanreceiptByIds(String ids) {
        return planreceiptMapper.deletePlanreceiptByIds(ids);
    }
}
